<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./node_modules/react/umd/react.development.js"></script>
    <script src="./node_modules/react-dom//umd/react-dom.development.js"></script>
    <script src="./node_modules/@babel/standalone/babel.js"></script>
    <div id="root"></div>
    <script type="text/babel">
      let counts = 100
      let arr = [1, 2, 3, 4, 5, 6]
      let obj = { name: '张三', age: '18' }
      let isShow = false
      let other = null
      let other1 = undefined
      let item = (
        <>
          <div className="item">
            <div className="title">852369741111111111</div>
            <ul>
              <li>{counts}</li>
              <li>arr-map:{arr.map((item) => item + 2)}</li>
              <li>
                obj:{obj.name}--{obj.age}
              </li>
              <li> isShow:{isShow ? '显示' : '隐藏'} </li>
              <li>null:{other}</li>
              <li>undefined:{other1}</li>
            </ul>
          </div>
        </>
      )

      let root = ReactDOM.createRoot(document.getElementById('root'))

      root.render(item)
    </script>
  </head>
  <body></body>
</html>
